package com.xhu.dao;

import com.xhu.entity.Mission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MissionMapper {

    List<Mission> selectAll(@Param("userAccount") String userAccount);

    int deleteByPrimaryKey(Integer id);

    int insert(Mission record);

    int insertSelective(Mission record);

    Mission selectByPrimaryKey(Integer id);

    Integer selectByUserAccMissionName(@Param("userAccount") String userAccount,@Param("missionName") String missionName);

    int updateByPrimaryKeySelective(Mission record);

    int updateByPrimaryKey(Mission record);
}